public class Singelton02 {

    private static Singelton02 singelton;

    static {
        singelton = new Singelton02();
    }

    private Singelton02() {
        System.out.println("Singelton02");
    }

    public static Singelton02 getInstance() {
        return singelton;
    }

    public static void main(String[] args) {
        Singelton02 singelton1 = Singelton02.getInstance();
        Singelton02 singelton2 = Singelton02.getInstance();
        System.out.println(singelton1 == singelton2);
    }
}
